import React from 'react';
// import Test1 from '../components/test';


class Home extends React.Component {
    name = 'tet'
    changData(){
        console.log('sz');
        this.name = 'jdfhhf'
    }
    render() {
        return (
            <div>

                {/* <Test1 name={this.name} changData={this.changData.bind(this)}></Test1> */}
                <div onClick={this.changData.bind(this)}>父触发事件</div>
            </div>
        )
    }
}

export default Home;
